package cn.big.bigd.configure;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

/**
 * 
 * @author wangfan
 *
 */
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {
    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder siteMeshFilterBuilder) {
        siteMeshFilterBuilder
                .addDecoratorPath("/cn/**","/WEB-INF/layout/layout-cn.jsp")
                .addDecoratorPath("/ybp/**","/WEB-INF/layout/adminLayout.jsp")
                .addDecoratorPath("/admin/**","/WEB-INF/layout/adminLayout.jsp")
                .addDecoratorPath("/**", "/WEB-INF/layout/layout.jsp")
                .addExcludedPath("/static/**")
                .addExcludedPath("/WEB-INF/inc/*");
    }

}
